package io.kiki.sba.registry.server.clientInterface.resource;

import io.kiki.sba.registry.common.model.metaserver.CompressPushSwitch;
import io.kiki.sba.registry.server.clientInterface.providedata.CompressPushService;

import javax.annotation.Resource;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

/*
temp set current session push compress switch
*/
@Path("compress")
public class CompressResource {
    @Resource
    CompressPushService compressPushService;

    @GET
    @Path("push/state")
    @Produces(MediaType.APPLICATION_JSON)
    public CompressPushSwitch getCurrentSwitch() {
        return compressPushService.getCompressSwitch();
    }
}
